package com.xu.crawler.dao.entity;

import org.springframework.data.mongodb.core.mapping.Document;
import us.codecraft.webmagic.model.BaseDO;

/**
 * 新闻实体
 * <p>
 * Created by clear on 2018/7/11.
 */
@Document(collection = "news")
public class NewsDO extends BaseDO {

    private String title;
    private String author;
    private Long publishTime;
    private String category;
    private String content;


    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Long getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Long publishTime) {
        this.publishTime = publishTime;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

}
